package com.whl.sm.controller.repair;


import com.whl.sm.common.result.Result;
import com.whl.sm.controller.BaseController;
import com.whl.sm.model.repair.DataOperateLog;
import com.whl.sm.service.repair.DataOperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuhaolun
 * @since 2021-11-28
 */
@RestController
@RequestMapping("/data-operate-log")
public class DataOperateLogController extends BaseController {

    @Autowired
    private DataOperateLogService operateLogService;

    @RequestMapping("/dataList")
    private Result getDataByDataId(@RequestParam("dataId") String dataId){
        List<DataOperateLog> resultList =  new ArrayList<>();
        resultList = operateLogService.getByDataId(dataId);
        return Result.ok(resultList);
    }

}
